package com.gqqx.weather.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalTime;
import java.util.Date;

@Data
@ApiModel(description = "Weather")
@TableName("weather")
public class Weather implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.INPUT)
    @ApiModelProperty(value = "气象站编号")
    @TableField("station")
    private Long station;

    @ApiModelProperty(value = "日期")
    @TableField("date")
    private Date date;

    @ApiModelProperty(value = "温度")
    @TableField("temperature")
    private String temperature;

    @ApiModelProperty(value = "湿度")
    @TableField("humidity")
    private String humidity;

    @ApiModelProperty(value = "风速")
    @TableField("speed")
    private String speed;

    @ApiModelProperty(value = "风向")
    @TableField("direction")
    private String direction;

    @ApiModelProperty(value = "降雨量")
    @TableField("rain")
    private String rain;

    @ApiModelProperty(value = "光照")
    @TableField("sunlight")
    private String sunlight;

    @ApiModelProperty(value = "pm2.5")
    @TableField("pm25")
    private String pm25;

    @ApiModelProperty(value = "pm10")
    @TableField("pm10")
    private String pm10;

    @Override
    public String toString() {
        return "{" +
                "station=" + station +
                ", date=" + date +
                ", temperature='" + temperature + '\'' +
                ", humidity='" + humidity + '\'' +
                ", speed='" + speed + '\'' +
                ", direction='" + direction + '\'' +
                ", rain='" + rain + '\'' +
                ", sunlight='" + sunlight + '\'' +
                ", pm25='" + pm25 + '\'' +
                ", pm10='" + pm10 + '\'' +
                '}';
    }
}
